package com.yzg.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yzg.mapper.FlashPromotionMapper;
import com.yzg.pojo.FlashPromotion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yzg.mapper.FlashPromotionSessionMapper;
import com.yzg.pojo.FlashPromotionSession;
import com.yzg.service.FlashPromotionSessionService;
@Service
public class FlashPromotionSessionServiceImpl implements FlashPromotionSessionService{

    @Autowired
    private FlashPromotionSessionMapper flashPromotionSessionMapper;
    @Override
    public Map<String, Object> selectList(Long flashPromotionId) {

        FlashPromotionSession flashPromotionSession=new FlashPromotionSession();
        QueryWrapper<FlashPromotionSession> queryWrapper=new QueryWrapper<>();
        queryWrapper.eq("id", flashPromotionId);
        FlashPromotionSession flashPromotionSession1 = flashPromotionSessionMapper.selectOne(queryWrapper);

        Map<String,Object> map=new HashMap<>();
        map.put("list",flashPromotionSession);
        return map;
    }
}
